package com.door.erp.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.door.erp.enums.BaseInfoStatus;

/**
 * 员工资料
 * @author yangxuelin
 */
@Entity
@Table(name = "employee", catalog = "door")
public class Employee implements Serializable {
	public final String SUPPER_ADMIN = "1";
	public final String EMPLOYEE = "2";
	public final String FINANCE = "3";

	private static final long serialVersionUID = 5330569091760980098L;

	private long id;
	
	private String name;
	
	private String phone;
	
	private String qq;
	
	private String gender;
	
	private String role;
	
	private String headPic;
	
	private BaseInfoStatus status;
	
	private String remark;
	
	private String account;
	
	private String password;
	
	private String roles;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "phone", nullable = false)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "qq")
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Column(name = "gender", nullable = false)
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "role")
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	@Column(name = "headPic")
	public String getHeadPic() {
		return headPic;
	}

	public void setHeadPic(String headPic) {
		this.headPic = headPic;
	}
	
	@Column(name = "status")
	public BaseInfoStatus getStatus() {
		return status;
	}

	public void setStatus(BaseInfoStatus status) {
		this.status = status;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "account")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	@Column(name = "password")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name = "roles")
	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	
	
}
